On a desktop system the power indicator does not get hidden correctly,
since a blank icon '' is returned instead of null.
https://bugzilla.gnome.org/show_bug.cgi?id=683080
_syncIcon: function() {
let icon = this._proxy.Icon;
- let hasIcon = (icon != null);
+ let hasIcon = false;
- if (hasIcon) {
+ if (icon) {
let gicon = Gio.icon_new_for_string(icon);
this.setGIcon(gicon);
+ hasIcon = true;
}
this.mainIcon.visible = hasIcon;
this.actor.visible = hasIcon && !this._isLocked;